﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="grid.aspx.vb" Inherits="MobileStandards.grid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" DataSourceID="mobiledb" 
            EmptyDataText="There are no data records to display.">
            <Columns>
                <asp:BoundField DataField="Author" HeaderText="Author" 
                    SortExpression="Author" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Week" HeaderText="Week" SortExpression="Week" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="mobiledb" runat="server" 
            ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\mobilestandards.accdb" 
            ProviderName="System.Data.OleDb" 
            SelectCommand="SELECT [Author], [Title], [Week] FROM [papers]">
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
